package com.youfang.sixthmedia.message.model;

import android.graphics.Bitmap;

import com.baidu.mapapi.GeoPoint;

public class Building implements MessageBean {
	
	//团购
	public static final int GROUP_ON = 1;
	//非团购
	public static final int GROUP_OFF = 0;
	

	public String id;
	public String buildingname;
	public String logo;
	public String readnum;
	public String price;
	public String address;
	public int privilegeid;
	public double longitude;
	public double latitude;
	public int grouponbydev;
	public String pricedesc;
	public String advisername;
	public String developername;
	public String buildingtype;
	public String region;

	// 图片数据
	
	public transient Bitmap logoBitmap;

	// 在客户端内部标识的ID
	public long innerID;

	public GeoPoint getGeoPoint() {
		return new GeoPoint((int) (latitude * 1E6), (int) (longitude * 1E6));
	}

	public int getLatitudeE6() {
		return (int) (latitude * 1E6);
	}

	public int getLongitudeE6() {

		return (int) (longitude * 1E6);

	}
}
